<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>别踩白块儿</title>
  <style>
    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      padding: 0;
      background-color: #ddeedd;
    }

    main {
      width: 210px;
      height: 540px;
    }

    /* 设置文字的的样式 */
    #text {
      width: 210px;
      height: 150px;
      text-align: center;
      position: absolute;
      top: -3%;
      left: 50%;
      transform: translateX(-50%);
    }

    /* 中间内容区的样式 */
    main,
    #container,
    .inst-arrow-left,
    .inst-arrow-down,
    .inst-arrow-right {
      /* 水平垂直居中 */
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    #container {
      height: 360px;
      width: 210px;
      overflow: hidden;
      border: 4px solid #333;
    }

    table {
      height: 540px;
      width: 210x;
      border: 1px solid #000;
      /* 相邻单元格公用一条线 */
      border-collapse: collapse;
      position: relative;
      top: -96px;
      left: 0;
    }

    td {
      border: 1px solid #333;
      height: 90px;
      width: 70px;
    }

    /* 游戏说明样式 */
    #instructions {
      width: 210px;
      position: absolute;
      top: 15%;
      left: 50%;
      transform: translateX(-50%);
    }

    #instructions>.arrow>div {
      float: left;
      width: 70px;
      height: 90px;
      position: relative;
      top: 360px;
    }

    #instructions .arrow .arrow-img {
      display: block;
      width: 30px;
    }

    .inst-arrow-left {
      transform: rotate(-90deg) translateY(-50%) translateX(50%);
    }

    .inst-arrow-right {
      transform: rotate(90deg) translateY(50%) translateX(-50%);
    }

    .inst-arrow-down {
      transform: rotate(180deg) translateY(50%) translateX(50%);
    }

    /* 黑色方块的 CSS 样式 */
    .test1,
    .test2,
    .test3 {
      width: 65.2px;
      height: 88.4px;
      display: table-cell;
      position: absolute;
      top: -92px;
      background-color: #000;
    }

    .test1 {
      left: 0%;
    }

    .test2 {
      left: 33.33%;
    }

    .test3 {
      left: 66.66%;
    }

    #button {
      position: absolute;
      width: 210px;
      height: 50px;
    }

    #gameStard,
    #gameEnd {
      margin: 520px 15px;
    }
  </style>
</head>

<body>
  <main>
    <!-- 计时器和分数 -->
    <div id="text">
      <h2>别踩白块儿</h2>

      <p>分数 : <stan id="span">0</stan>
      </p>
      <!-- <p>时间 : <span>0</span></p> -->
    </div>
    <!-- 中间白块区域 -->
    <div id="container">

      <table>
        <tr>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      </table>
    </div>
    <div id="instructions">
      <div class="arrow">
        <div><img class="arrow-img inst-arrow-left" src="./imgs/jiantou12-copy.png"></div>
        <div><img class="arrow-img inst-arrow-down" src="./imgs/jiantou12-copy.png"></div>
        <div><img class="arrow-img inst-arrow-right" src="./imgs/jiantou12-copy.png"></div>
      </div>
    </div>
    <div id="button">
      <button id="gameStard">游戏开始</button>
      <button id="gameEnd">游戏结束</button>
    </div>
  </main>
  <script src="./behavior2.js"></script>
</body>

</html>